package cn.tedu.egmvc9.mapper;

import cn.tedu.egmvc9.pojo.entity.Notice;
import cn.tedu.egmvc9.pojo.vo.NoticeDetailInfoVO;
import cn.tedu.egmvc9.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper
public interface NoticeMapper {
    int insert(Notice notice);

    List<NoticeListVO> list(@Param("title") String title, @Param("type") Integer type);

    NoticeDetailInfoVO getNoticeDetail(long id);

    int del(long id);

    int update(Notice notice);


}
